<template>
  <div class="discount-wrapper">
    <div class="header">
      <union-head :content="title" :leftIcon="leftIcon" :rightIcon="rightIcon" @leftClick="goBack"></union-head>
    </div>
    <div class="content">
      <home-discount></home-discount>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import HomeDiscount from '../home-view/home-discount.vue'
  import UnionHead from '../../components/union-head.vue'
  export default {
    name: 'discount',
    components: {
      HomeDiscount,
      UnionHead
    },
    data () {
      return {
        title: '附近优惠',
        rightIcon: 'icon-ali-search',
        leftIcon: 'icon-ali-back'
      }
    },
    mounted () {
    },
    methods: {
      showDetail () {
        this.$router.push({name: 'detail'})
      },
      goBack () {
        this.$router.go(-1)
      }
    }
  }
</script>

<style lang="stylus" type="text/stylus" scoped>
  @import "discount.styl"
</style>
